package com.example.demo.dto;

/**
 * 登录请求数据传输对象
 * 用于封装客户端发送的登录请求数据
 */
public class LoginRequest {
    private String username;
    private String password;

    // 无参构造函数
    public LoginRequest() {
    }

    // 带参构造函数
    public LoginRequest(String username, String password) {
        this.username = username;
        this.password = password;
    }

    // Getter和Setter方法
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}